<h1>Conference reports</h1>
<h2><?php echo $confName ?></h2>

<h3>Sessions</h3><br/><br/>


<?php echo $pager->getNbResults() ?> results found.<br />
Displaying results <?php echo $pager->getFirstIndice() ?> to  <?php echo $pager->getLastIndice() ?>.
 
 <?php foreach ($pager->getResults() as $session): ?>
  <?php echo '<p>'.$session->getId().'</p>'; ?>

<?php endforeach ?>
 
 <?php if ($pager->haveToPaginate()): ?>
  <?php echo '<a href ="report/session?id='.$id.'&page='.$pager->getFirstPage().'">hi</a>'; ?>
  <?php echo link_to('&lt;', 'report/session?id='.$id.',page='.$pager->getPreviousPage()) ?>
 
  <?php echo link_to('&gt;', 'sessionreports?id='.$id.'&page='.$pager->getNextPage()) ?>
  <?php echo link_to('&raquo;', 'report/session?id='.$id.',page='.$pager->getLastPage()) ?>
<?php endif ?>
<?php /*
    foreach ($sessions as $session){
        
        echo "<li><p>";
        echo $session->getSessionCode();
        echo "   <strong>";
        echo $session->getName();
        echo "</strong> <br/> ( ";
        echo $session->getTimeStart();
        echo " - ";
        echo $session->getTimeEnd();
        echo " ) <br/>";
        echo $session->getDescription();
        echo "<br/> Current enrollment: ";
        echo link_to($session->getNbSessionRegistrations(), 'reports/sessionroster?id='.$session->getId());
        echo "<br/> Maximum enrollment: ";
        echo $session->getMaxEnroll();
        echo "</p><br/><br/></li>";
		

    }
	if(!$sessions){
		echo "<p>This Conference has no sessions</p>";
	}  */

?>